package com.action;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.SessionAware;

import com.bean.Users;
import com.opensymphony.xwork2.ActionSupport;
import com.util.Page;

public class BasicAction extends ActionSupport implements SessionAware,
		ServletRequestAware {
	protected Map<String, Object> session;
	protected HttpServletRequest request;
	protected HttpServletResponse response;
	
	public String message;
	
	public void setSession(Map<String, Object> session) {
		this.session = session;
	}

	public void setServletRequest(HttpServletRequest request) {
		this.request = request;
	}

	public void setRequestMessage(String key, Object value) {
		request.setAttribute(key, value);
	}

	public void setResponse(HttpServletResponse response) {
		this.response = response;
	}


	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
}
